
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type ArticleContentRequest struct {

	Nid string `json:"nid" form:"nid"`

	Content string `json:"content" form:"content"`

}

func (r *ArticleContentRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *ArticleContentRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"nid": "required",

		"content": "required",

	}
}

func (r *ArticleContentRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *ArticleContentRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *ArticleContentRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
